<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        let person1 = {name: "Amy", age: 15}
        let someone = {...person1}
        console.log(someone)

        let age = {age: 23, gender: '男'}
        let name = {name: 'lisi', salary: 2323}
        let person2 = {...age, ...name}
        console.log(person2)

        let person = {
            name: 'jack',
            age: 21,
            language: ['java', 'js', 'css']
        }
        console.log(Object.keys(person))
        console.log(Object.values(person))
        console.log(Object.entries(person))

        let target = { name: 'zhangsan' };
        let source1 = { age: 24 };
        let source2 = { gender: '男' };
        Object.assign(target, source1, source2)
        console.log(target)

    </script>
</body>
</html>